﻿using PeiYue.Model.Dto.Sys;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace PeiYue.IServices.Sys
{
    public interface IDicHeaderService
    {
        /// <summary>
        /// 获取字典
        /// </summary>
        /// <param name="codec">字典代码</param>
        /// <returns></returns>
        Task<DicHeaderDto> GetDicHeader(string codec);
        /// <summary>
        /// 根据key获取字典详情
        /// </summary>
        /// <param name="codec">字典代码</param>
        /// <param name="key">键</param>
        /// <returns></returns>
        Task<DicDetailDto> GetDicDetail(string codec, string key);
        /// <summary>
        /// 根据val获取字典详情
        /// </summary>
        /// <param name="codec"></param>
        /// <param name="val"></param>
        /// <returns></returns>
        Task<DicDetailDto> GetDicDetailByVal(string codec, string val);


    }
}
